<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			function sayHi(a,b,c)
			{
				return a+b+c;
			}
			var r=sayHi(1,2,4);
			alert(r);
			function sayHello(c)
			{
				//alert("大家上午好");
				for(var i=1;i<=c;i++)
				{
					document.write("<h1>大家上午好</h1>");
				}
			}
		</script>
	</head>
	<body>
		<input type="button" value="事件" onclick="sayHello(prompt('input a number:'))" />
	</body>
</html>
